<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>可将HTML表格导出为Excel|csv|txt文件</title>
	<link href="bootstrap.min.css" rel="stylesheet">
    <!-- <link href="bootstrap/css/bootstrap-theme.min.css" rel="stylesheet"> -->
    <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> -->
	<!-- <link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css"> -->
	<link href="tableexport.min.css" rel="stylesheet">
	<!--[if IE]>
		<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
	<![endif]-->
</head>
<body>
	<div class="htmleaf-container">
		<header class="htmleaf-header">
			<h1>可将HTML表格导出为Excel|csv|txt文件 </h1>
		</header>
		<div class="container">
			<div class="row">
                <div class="col-md-12">
                    <div class="table-responsive">
                        <table id="Population-list-1" class="table table-striped table-bordered"
                               data-name="cool-table">
                            <thead>
                            <tr>
                                <th>Rank</th>
                                <th>Country</th>
                                <th>Population</th>
                                <th>% of world population</th>
                                <th>Date</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>1</td>
                                <td>中华人民共和国 (People's Republic of China)</td>
                                <td>1,370,570,000</td>
                                <td>18.9%</td>
                                <td>June 24, 2015</td>
                            </tr>
                            <tr>
                                <td>2</td>
                                <td>India</td>
                                <td>1,273,140,000</td>
                                <td>17.6%</td>
                                <td>June 24, 2015</td>
                            </tr>
                            <tr>
                                <td>3</td>
                                <td>United States "USA"</td>
                                <td>321,268,000</td>
                                <td>4.43%</td>
                                <td>June 24, 2015</td>
                            </tr>
                            <tr>
                                <td>4</td>
                                <td>Indonesia</td>
                                <td>255,461,700</td>
                                <td>3.52%</td>
                                <td>July 1, 2015</td>
                            </tr>
                            <tr>
                                <td>5</td>
                                <td>Brazil</td>
                                <td>204,503,000</td>
                                <td>2.82%</td>
                                <td>June 24, 2015</td>
                            </tr>
                            <tr>
                                <td>6</td>
                                <td>Pakistan</td>
                                <td>190,156,000</td>
                                <td>2.62%</td>
                                <td>June 24, 2015</td>
                            </tr>
                            <tr>
                                <td>7</td>
                                <td>Nigeria</td>
                                <td>183,523,000</td>
                                <td>2.53%</td>
                                <td>July 1, 2015</td>
                            </tr>
                            <tr>
                                <td>8</td>
                                <td>Bangladesh</td>
                                <td>126,880,000</td>
                                <td>2.19%</td>
                                <td>June 24, 2015</td>
                            </tr>
                            <tbody>
                        </table>
                    </div>
                </div>
            </div>
		</div>
	</div>
	
	<!-- <script src="http://libs.useso.com/js/jquery/1.11.0/jquery.min.js" type="text/javascript"></script> -->
	<script>window.jQuery || document.write('<script src="js/jquery-1.11.0.min.js"><\/script>')</script>
	<!-- <script src="bootstrap/js/bootstrap.min.js"></script> -->
	<script src="js/xlsx.core.min.js"></script>     <!-- //下载xlsx必备 -->
	<script src="js/blob.js"></script>           <!-- //下载xlsx必备 -->
	<script src="js/FileSaver.min.js"></script>      
	<script src="js/tableexport.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$("table").tableExport({formats:["xlsx","xls","csv","txt"]});
		})
	</script>
</body>
</html>